#include "FileConfigReader.h"

FileConfigReader::FileConfigReader(string f)
{
	int fileType;
	FileName=f;
	DataFile.open(FileName.c_str());
	if(!DataFile.is_open()){
		throw(EXC_FILE_NOT_FOUND);
	}
	DataFile.close();

//	fileType=getFileType();
/*	
	switch(fileType){
		case FILE_TYPE_LECROY:
			readLecroy();
		break;
		case FILE_TYPE_AGILENT:
			readAgilent();
		break;
		default:
			throw(EXC_FILE_FORMAT_INVALID);
	}
*/
}


FileConfigReader::~FileConfigReader()
{
	unsigned int i,j;
/*	
	if(DataFile!=NULL){
		DataFile.close();
	}
	for(i=0;i<Tracks.size();i++){
		//cout <<i<<endl;
		if(Tracks[i]==NULL){
			continue;
		}
		for(j=i+1;j<Tracks.size();j++){
			if(Tracks[j]==Tracks[i]){
				Tracks[j]=NULL;
			}
		}
		//cout <<"d "<<i<<endl;
		delete Tracks[i];
	}
*/
}
